package com.mars.module.admin.service;

import com.mars.module.admin.entity.AdminInviteActivity;
import com.mars.common.response.PageInfo;
import com.mars.module.admin.request.AdminInviteActivityRequest;

import java.util.List;

/**
 * 【请填写功能名称】接口
 *
 * @author wang
 * @date 2024-07-18
 */
public interface IAdminInviteActivityService {
    /**
     * 新增
     *
     * @param param param
     * @return AdminInviteActivity
     */
    AdminInviteActivity add(AdminInviteActivityRequest param);

    /**
     * 删除
     *
     * @param id id
     * @return boolean
     */
    boolean delete(Integer id);

    /**
     * 批量删除
     *
     * @param ids ids
     * @return boolean
     */
    boolean deleteBatch(List<Integer> ids);

    /**
     * 更新
     *
     * @param param param
     * @return boolean
     */
    boolean update(AdminInviteActivityRequest param);

    /**
     * 查询单条数据，Specification模式
     *
     * @param id id
     * @return AdminInviteActivity
     */
    AdminInviteActivity getById(Integer id);

    /**
     * 查询分页数据
     *
     * @param param param
     * @return PageInfo<AdminInviteActivity>
     */
    PageInfo<AdminInviteActivity> pageList(AdminInviteActivityRequest param);


    /**
     * 查询所有数据
     *
     * @return List<AdminInviteActivity>
     */
    List<AdminInviteActivity> list(AdminInviteActivityRequest param);
}
